import request from '@/utils/request'

// 查询预约设计师列表
export function listStarDesigner(query) {
  return request({
    url: '/StarDesigner/StarDesigner/list',
    method: 'get',
    params: query
  })
}

// 查询预约设计师详细
export function getStarDesigner(id) {
  return request({
    url: '/StarDesigner/StarDesigner/' + id,
    method: 'get'
  })
}

// 新增预约设计师
export function addStarDesigner(data) {
  return request({
    url: '/StarDesigner/StarDesigner',
    method: 'post',
    data: data
  })
}

// 修改预约设计师
export function updateStarDesigner(data) {
  return request({
    url: '/StarDesigner/StarDesigner',
    method: 'put',
    data: data
  })
}

// 删除预约设计师
export function delStarDesigner(id) {
  return request({
    url: '/StarDesigner/StarDesigner/' + id,
    method: 'delete'
  })
}

// 导出预约设计师
export function exportStarDesigner(query) {
  return request({
    url: '/StarDesigner/StarDesigner/export',
    method: 'get',
    params: query
  })
}